<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Adding Expenditures</title>
<link href="../css/CalendarControl.css" rel="stylesheet" type="text/css">
<script src="../js/CalendarControl.js" language="javascript"></script>
</head>
<body>
<div class="code">
${success}
</div>
	
	<form:form action="addExpenditure.htm" commandName="expenditure">
		<form:errors path="*" cssClass="alert-error" element="div" />
		<div class="active">
			By Whom :
			<form:input path="byWhom" value="${user.userName}" readonly="true" />
		</div>
		<div >
			Description :
			<form:input path="description" />
		</div>
		<div>
			On Whom :
			<form:select path="onWhom">
				<form:option value="0" label="Select One" />
				<form:options items="${userNamesList}" />
				<form:option value="1" label="all" />
			</form:select>
		</div>
		<div>
			Amount :
			<form:input path="amount" />
		</div>
		<div>
			Spent Date :
			<form:input path="spentDate" onfocus="showCalendarControl(this);"
				name="todays_date" />
		</div>

		<input name="submit" type="submit" value="submit"
			class="btn btn-primary pagination-centered" />
	</form:form>
</body>
</html>